// pages/restaurant/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {

  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },
  onReachBottom() {
    this.selectComponent('#nearCar').onReachBottom();
  },
  onPullDownRefresh() {
    wx.showNavigationBarLoading()
    setTimeout(() => {
      wx.hideNavigationBarLoading()
      this.selectComponent('#nearCar').downRefresh();
    }, 300)
  },
  restaurantClick() {
    wx.navigateTo({
      url: '/pages/shop/shopDetail/index',
    })
  },
  paymentClick() {
    wx.navigateTo({
      url: '/pages/shop/settlement/index',
    })
  }
})
